#include "MySqlMgr.h"

MySqlMgr::~MySqlMgr()
{
}

int MySqlMgr::RegUser(const string& name, const string& pwd, const string& email)
{
	return dao_.RegUser(name, pwd, email);
}

bool MySqlMgr::CheckEmail(const std::string& name, const std::string& email)
{
	return dao_.CheckEmail(name, email);
}

bool MySqlMgr::UpdatePwd(const std::string& name, const std::string& pwd)
{
	return dao_.UpdatePwd(name, pwd);
}

bool MySqlMgr::CheckPwd(const std::string& email, const std::string& pwd, UserInfo& userinfo)
{
	return dao_.CheckPwd(email,pwd,userinfo);
}

MySqlMgr::MySqlMgr() {

};